import {
  BaseCmd,
  BaseQry,
  BaseView,
  CommonEnum,
} from '@/types/global-business';

export interface WxMaCodeVersionExpand {
  extJson?: string;
  pageList?: string[];
}

export interface WxMaCodeVersionView extends BaseView {
  componentAppId?: string;
  appId?: string;
  status?: CommonEnum;
  auditId?: number;
  templateId?: number;
  userVersion?: string;
  userDesc?: string;
  undoCount?: number;
  expand?: WxMaCodeVersionExpand;
}

export interface WxMaCodeVersionAddCmd extends BaseCmd {
  componentAppId?: string;
  appId?: string;
  codeTemplateId?: number;
  expand?: WxMaCodeVersionExpand;
}

export interface WxMaCodeVersionUptCmd extends BaseCmd {
  scene?: any;
  componentAppId?: string;
  id?: number;
}

export interface WxMaCodeVersionListQry extends BaseQry {
  componentAppId?: string;
}
